import speechd

client = None

def init_speech():
    global client
    client = speechd.SSIPClient("dark-invaders", "default")

def speak(msg, interrupt=True):
    if interrupt:
        stop()
    client.speak(msg)

def stop():
    client.stop()
